//
//  YJPCycleView.h
//  轮播图封装(CollectionView版本)
//
//  Created by dllo on 16/5/26.
//  Copyright © 2016年 dllo. All rights reserved.
//

#import <UIKit/UIKit.h>

@protocol YJPCycleViewDelegate <NSObject>
// 必须实现的
@required

// 可选择实现的
@optional
-(void)didClickedItemAtIndexPath:(NSIndexPath *)indexPath;
@end

@interface YJPCycleView : UIView
/** 代理人 */
@property (nonatomic, assign) id<YJPCycleViewDelegate> delegate;
// 声明初始化方法:
-(instancetype)initWithFrame:(CGRect)frame
                  DataSource:(NSArray *)dataSource
                TimeInterval:(CGFloat)time
                  cachesData:(NSMutableArray *)cacherArray;

@property (nonatomic, assign) BOOL carousStyle;
/** 轮播图控件 */
@property (nonatomic, strong) UICollectionView *collectionView;

@end
